package com.iter.devbox.pattern.bridge;

public class Client {

	public static void main(String[] args) {
		/**喝大杯的不加冰的雪碧*/
		Drink drink = new Sprite(new LargeCup(), new NonAddingIce());
		drink.drink();
		System.out.println("---------");
		
		/**喝小杯的加冰的雪碧*/
		Drink drink2 = new Sprite(new SmallCup(), new AddingIce());
		drink2.drink();
		System.out.println("---------");
		
		/**喝大杯的不加冰的可乐*/
		Drink drink3 = new Cola(new LargeCup(), new NonAddingIce());
		drink3.drink();
		System.out.println("---------");
		
		/**喝小杯的加冰的可乐*/
		Drink drink4 = new Cola(new SmallCup(), new AddingIce());
		drink4.drink();
	}
}
